#!/bin/bash
# 

read -p "磁盘名: "  name
df -hT | grep "$name" |awk '{print $6}'|awk -F% '{print $1}'  &> /dev/null
if [ $? -eq 0 ]; then   
     
      echo "磁盘存在"
nc=$(df -hT | grep "$name" |awk '{print $6}'|awk -F% '{print $1}')

if [ $nc -gt 5 ]; then
      echo "警告"
 else
      echo "正常" 
fi
 else 
      echo "磁盘不存在"
fi




